import Methods from '../utils/Methods'
const packages = require('../../package.json');

const components = {

}
const install = function(Vue) {
	for (let key in components) {
		const component = components[key]
		Vue.component(component.name, component);
	}
	Vue.prototype._$Methods = Methods
}

if (typeof window !== 'undefined' && window.Vue) {
	install(window.Vue);
}
export default {
	version: packages.version,
	author: packages.author,
	install,
	...components
}
